package learn.up.java.designMode.abstractFactory;

import org.junit.Test;

public class FactoryTest {

	@Test
	public void test1() {
		PersonFacroty mc = new MCFactory();
		mc.getBoy().drawBoy();
		mc.getGirl().drawGril();
	}
	
	@Test
	public void test2() {
		PersonFacroty ny = new NYFactory();
		ny.getBoy().drawBoy();
		ny.getGirl().drawGril();
	}
	
}
